package com.song.service;

import com.song.entity.BorrowInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.song.entity.vo.BorrowInfoApprovalVO;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Song
 * @since 2025-01-03
 */
public interface BorrowInfoService extends IService<BorrowInfo> {

   public  BigDecimal getBorrowAmount(Long userId);

   public Integer getBorrowInfoStatus(Long userId);

   public void saveBorrowInfo(BorrowInfo borrowInfo, Long userId);

    public List<BorrowInfo> selectList();

    public Map<String, Object> getBorrowInfoAndBorrowById(Long id);

    //借款认证
    public void approval(BorrowInfoApprovalVO borrowInfoApprovalVO);
}
